<?php
	include_once("../includes/header.php");
	include_once("../includes/common.php");
	include_once("../includes/connect.php");
	include_once("../includes/functions.php");
?>	<!-- ************** V MAIN CONTENT HERE  V ********************************************************************************** -->  
	
	<h3>Add New Question Group</h3>

	<?php
		if ($_SERVER['REQUEST_METHOD'] == "POST")
		{
			if ($_POST["submit"] != "No")
			{
				$mode = "add";
				include_once("../includes/validateqgroup.php");
			}
		}
		
		if (sizeof($errors) > 0 || ($_SERVER['REQUEST_METHOD'] == "POST" && $_POST["submit"] == "No") || $_SERVER['REQUEST_METHOD'] != "POST")
		{
	?>
	<form action="<?php echo $_SERVER['../qgroup/PHP_SELF']; ?>" method="post" >
		<ol>
		  <li>
			<label for="name">Group Name *</label>
			<input name="qgroupname" class="text" value="<?php echo (isset($_POST["qgroupname"])) ? $_POST["qgroupname"] : "" ?>" />
		  </li>
		  <li>
			<label>&nbsp;</label>
			<input type="submit" name="submit" value="Submit" onClick="" />
		  </li>
		</ol>
	</form>	 

<?php 
		}
	include_once("../includes/sidebar.php");
	include_once("../includes/footer.php");
?>
